package com.yeung.starter;

/**
 * 这个类的实例是通过自动配置类创建并加入到ioc容器中,
 * 别人引用了这个starter就会进行自动的创建
 */
public class HelloServ {
    HelloProperties properties;

    public HelloServ() {
    }

    public HelloServ(HelloProperties properties) {
        this.properties = properties;
    }

    public String sayHello(String name) {
        return properties.getPrefix() + name + properties.getSuffex();
    }
}
